<?php
include_once("../modules/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'menu'");
?>



<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
?>
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once(ROOT_PATH_.'/controlbase/modules/head.php'); ?>

</head>

<body>

<div id="topbar"><?php include ROOT_PATH_.'/controlbase/modules/topbar.php'; ?></div>

<div id="container" class="member">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controlbase/modules/sidebar.php'; ?>
        </div>


<div id="content"> 




<div class="box menu-add-box layui-form">
<h1>新增菜式</h1>




<form id="add-form" method="post" action="detail-add-function.php?nav-itemed=menu" enctype="multipart/form-data" class="layui-form">



    <div class="layui-form-item">
        <label class="layui-form-label">菜式</label>
        <div class="layui-input-block">
            <input type="text" name="ai_name" required  lay-verify="required" placeholder="请输入名字" autocomplete="off" class="layui-input" value="<? echo $detail['name']?>">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">价格</label>
        <div class="layui-input-block">
            <input type="text" name="ai_price" required  lay-verify="required" placeholder="请输入价钱" autocomplete="off" class="layui-input" value="<? echo $detail['price']?>">
        </div>
    </div>




    <div class="layui-form-item">
        <label class="layui-form-label">发布状态</label>
        <div class="layui-input-block">
            <input type="radio" name="ai_status" value="发布" title="发布"
                <? if($detail['status']=="发布"){echo "checked";} ?>
                >
            <input type="radio" name="ai_status" value="隐藏" title="隐藏"
                <? if($detail['status']=="发布"){echo "checked";} ?>
                >
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">时段</label>
        <div class="layui-input-block">
            <input type="radio" name="ai_meal" value="1" title="早餐"
                <? if($detail['meal']=="1"){echo "checked";} ?>
                >
            <input type="radio" name="ai_meal" value="2" title="午餐"
                <? if($detail['meal']=="2"){echo "checked";} ?>
                >

        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">日期</label>
        <div class="layui-input-block">

            <input type="text" name="ai_applydate" id="date" autocomplete="off" class="layui-input"  value="<? echo $detail['applydate']?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" class="laydate-icon">
        </div>
    </div>























    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>



    <input name="sys_part" type="hidden" value="<? echo $system_part ?>"/>
    <input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
    <input name="sortby" type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>



</form>

 


 
 
        </div>
		
 
 
<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>








<?php include_once('../modules/footer.php'); ?> </body>
</html>

